﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YYSite.Common;

namespace YYSite.Domain.System.Permissions
{
    public class GetPermissionDataGridInput : DataGridInput
    {
        public GetPermissionDataGridInput()
        {
           
        }
        /// <summary>
        /// 构建条件语句和参数
        /// </summary>
        public override void Initialize()
        {
            //例子：
            if (!string.IsNullOrWhiteSpace(this.Keywords))
            {
                this.DbSQL.Append(" AND [System].[Permission].[Id] LIKE @Keywords");
                this.DbParameters.Add("@Keywords", "%" + this.Keywords + "%", DbType.String);
            }
        }
    }
}


